<style tyle="text/css">
  .pay-style {
    border: 1px solid #ccc;
    width: 123px;
    height: 35px;
    line-height: 35px;
    margin: 0 10px 10px 0;
    cursor: pointer;
  }
  .red {
    color: #f00;
  }
  .alipay {
    background: #f00 url('./img/pay.jpg') no-repeat -2px -810px;
  }
  .wexin {
    background: #f00 url('./img/pay.jpg') no-repeat -7px -1022px;
  }
  .selected {
    border: 2px solid #f00;
  }
</style>
<div class="wrapper row">
  <div class="panel panel-default">
    <tabset class="tab-container">

      <tab heading="余额充值">
        <div class="panel-body">
          <div class="col-lg-12">
            <h3 style="margin-bottom: 20px">
              <span class="col-lg-3 text-right">商户名称：</span>
              <span class="col-lg-4" style="padding: 0px">{{info.company_name}}</span>
            </h3>
          </div>
          <div class="col-lg-12">
            <h3 style="margin-bottom: 20px">
              <span class="col-lg-3 text-right">平台余额：</span>
              <strong class="red">{{platformInfo.balance_price | currency : '¥'}}</strong> 元
            </h3>
          </div>
          <div class="line b-b line-lg pull-in"></div>
          
          <div class="col-lg-12">
            <h4 class="col-lg-2-4 control-label text-right">充值方式</h4>
            <h4 class="col-lg-8" style="margin: 0px">
              <span id="wexin" class="col-lg-2 pay-style wexin selected" ng-click="selectPay(true)"></span>
              <span id="alipay" class="col-lg-2 pay-style alipay" ng-click="selectPay(false)"></span>
            </h4>
          </div>
          <div class="col-lg-12">
            <h4 class="col-lg-2-4 control-label text-right" style="margin-top: 17px;">充值金额</h4>
            <h4 class="col-lg-3">
              <div class="input-group">
                <input type="number" class="form-control" ng-model="fromDate.money">
                <span class="input-group-addon">元</span>
              </div>
            </h4>
          </div>
          <div class="col-lg-2 col-lg-offset-2" style="margin-top: 20px">
            <button class="btn btn-success btn-block" ng-click="recharge()">充 值</button>
          </div>
          
        </div>
      </tab>

      <tab heading="余额提现"  ng-click="getRecord(1)">
        <div class="panel-body">
          <div class="col-lg-12">
            <h3 style="margin-bottom: 20px">
              <span class="col-lg-3 text-right">商户名称：</span>
              <span class="col-lg-4" style="padding: 0px">{{info.company_name}}</span>
            </h3>
          </div>
          <div class="col-lg-12">
            <h3>
              <span class="col-lg-3 text-right">平台余额：</span>
              <strong class="red">{{platformInfo.balance_price | currency : '¥'}}</strong> 元
            </h3>
          </div>
          <div class="col-lg-12">
            <h3 style="margin-top: 10px; margin-bottom: 20px">
              <span class="col-lg-3 text-right">可提现余额：</span>
              <strong class="red">{{platformInfo.balance_price-platformInfo.block_price | currency : '¥'}}</strong> 元
            </h3>
          </div>
          <div class="line b-b line-lg pull-in"></div>
          <div class="col-lg-2 col-lg-offset-2" style="margin-bottom: 20px">
            <button class="btn btn-success btn-block" ng-click="withdrawal()">提 现</button>
          </div>

          <table class="table table-hover table-bordered dataTable table-condensed tree_table" style="table-layout:fixed">
            <thead>
              <tr>
                <th class="text-center" style="width: 15%">银行卡户主</th>
                <th class="text-center" style="width: 20%">银行卡号</th>
                <th class="text-center" style="width: 14%">提现金额(元)</th>
                <th class="text-center" style="width: 14%">实际到账金额(元)</th>
                <th class="text-center" style="width: 15%">提现时间</th>
                <th class="text-center" style="width: 12%">操作人账号</th>
                <th class="text-center" style="width: 15%">到账状态</th>
              </tr>
            </thead>
            <tbody>
              <tr ng-show="withdrawList.length==0">
                <td class="text-center" colspan="7"><i><strong>暂无提现记录</strong></i></td>
              </tr>
              <tr ng-repeat="obj in withdrawList">
                <td class="text-center">{{obj.bankcardname}}</td>
                <td class="text-center">{{obj.bankcard}}</td>
                <td class="text-center">{{obj.money | currency : '¥'}}</td>
                <td class="text-center">{{obj.actual_money | currency : '¥'}}</td>
                <td class="text-center">{{obj.create_time}}</td>
                <td class="text-center">{{obj.create_by}}</td>
                <td class="text-center">{{obj.back_state=='0'?'提现审核中':'已处理'}}</td>
              </tr>
            </tbody>
          </table>
          <div class="text-right" style="background-color: white; margin-right: 30px">
            <pagination total-items="totalItems" ng-model="currentPage" ng-change="getRecord(currentPage)" previous-text="上一页"
            next-text="下一页" first-text="首页" last-text="尾页" max-size="5" boundary-links="true" rotate="false"
            items-per-page="itemsPerPage" class="m-t-none m-b"></pagination>
          </div>
        </div>
      </tab>
    </tabset>
  </div>
</div>




